home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
7_10.lha
/
7_10
/
qh_des.c
< prev
next >
Wrap
Text File
|
1993-08-08
|
565b
|
21 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
include <process.h>
include <debug.h> /* DELETE */
/ delete the queue_head and also the process_queue
/ if it is not also pointed to by a queue_tail
ueue_head::~queue_head()
if (debug) /*DELETE*/ cerr << "queue_head" << this << "::~queue_head()\n";
process_queue *q = qh_queue;
if (q->q_tail)
q->q_head = 0;
else
delete q;
if (debug) /*DELETE*/ cerr << "<<<< queue_head" << this << "::~queue_head()\n";